package com.hellojava.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author dengjihai
 * @create 2017-11-16
 **/
@Controller
public class LoginController {

    @RequestMapping({"/login","/"})
    public String login(Model model){
        model.addAttribute("msg","成功！");
        return "/login";
    }

    @RequestMapping("/index")
    public String index(){

        return "/index";
    }

    @RequestMapping("/main")
    public String main(){

        return "/main";
    }

}
